import request from '@/utils/request'

enum Api {
  selectAllRecord = '/record/selectAll', // 查询所有排查档案信息
  updateRecord = '/record/update', // 根据ID更新排查档案信息
  selectConfigByRecordId = '/record/selectConfigByRecordId', // 根据档案ID查询指定类型的配置信息
  selectInfoByCondition = '/record/selectInfoByCondition', // 根据档案ID,搜索类型,搜索内容查询对应排水户,排查范围,点位井,管线信息
}

export function selectAllRecord(params?: object) {
  return request.get(Api.selectAllRecord, params)
}

export function selectConfigByRecordId(params?: object) {
  return request.get(Api.selectConfigByRecordId, params)
}

export function selectInfoByCondition(data?: object) {
  return request.post(Api.selectInfoByCondition, data)
}
export function updateRecord(data?: object) {
  return request.post(Api.updateRecord, data)
}
